home *** CD-ROM | disk | FTP | other *** search
/ Easy Tutor - Learn Windows 95 / Easy Tutor - Learn Windows 95.iso / data / crt / appmsg.h next >
Encoding:
C/C++ Source or Header  |  1995-03-23  |  10.1 KB  |  223 lines

  1. /****************************************************************************\
  2. *                                                                            *
  3. *      Program Name:           EasyTutor Learn - Windows 95                  *
  4. *                                                                            *
  5. *      Copyright:              (c) CRT Multimedia 1994/1995                  *
  6. *                                                                            *
  7. *      Module Name:            APPMSG.H                                      *
  8. *                                                                            *
  9. *      Module Description:     User definined message definitions and disp.  *
  10. *                              object message definitions for the whole      *
  11. *                              application.                                  *
  12. *                                                                            *
  13. *      Creation Date:          19/02/95                                      *
  14. *                                                                            *
  15. *      Developer Names:        Martin Packer                                 *
  16. *                              Duncan Lowe                                   *
  17. *                              Peter Lux                                     *
  18. *                              Mateo Solares                                 *
  19. *                                                                            *
  20. \****************************************************************************/
  21.  
  22.  
  23. /***************************************************************************\
  24. *   User defined messages                                                  *
  25. \***************************************************************************/
  26. #define UDM_MODULE_MENU_ANIMATE_BUTTON  (WM_USER + 5) 
  27.  
  28.  
  29.  
  30. /***************************************************************************\
  31. *   Screen handling messages for root display object                        *
  32. \***************************************************************************/
  33.  
  34. // destroys the current screen and creates a new one
  35. #define DO_SCREEN_DESTROY_AND_GOTO      1
  36.  
  37. // hides the current screen and creates a new one
  38. #define DO_SCREEN_HIDE_AND_GOTO         2
  39.  
  40. // destroys all but the current screen
  41. #define DO_SCREEN_DESTROY_NOT_CURRENT   3
  42.  
  43. // informs the root object that we're entering the concept half of the app
  44. #define DO_SCREEN_ENTERING_CONCEPT      4
  45.            
  46. // informs the root object that we're entering the how-to half of the app
  47. #define DO_SCREEN_ENTERING_HOWTO        5
  48.  
  49. // destroys the current screen and goes to either the first concept page
  50. // or the how-to screen for the given topic, depending on which half of
  51. // the program we're in (goes to concept if we're not in either).
  52. #define DO_SCREEN_GOTO_TOPIC            6
  53.  
  54. // informs the root display object which detail is selected
  55. #define DO_SCREEN_CURRENT_TOPIC         7
  56.  
  57. // informs the root display object which detail is selected
  58. #define DO_SCREEN_CURRENT_DETAIL        8
  59.  
  60. // skips from the how-to section to the appropriate part of the concept section
  61. #define DO_SCREEN_SKIP_TO_CONCEPT       9
  62.  
  63. // skips from the concept section to the appropriate part of the how-to section
  64. #define DO_SCREEN_SKIP_TO_HOWTO         10
  65.  
  66. // goes to a concept page within the curent topic
  67. #define DO_SCREEN_GOTO_CONCEPT_PAGE     11
  68.  
  69. // pages to the next concept page within the curent topic
  70. #define DO_SCREEN_NEXT_CONCEPT_PAGE     12
  71.  
  72. // pages to the previous concept page within the curent topic
  73. #define DO_SCREEN_PREVIOUS_CONCEPT_PAGE 13
  74.  
  75. // informs the root display object that the current detail has been viewed
  76. #define DO_SCREEN_DETAIL_VIEWED         14
  77.  
  78. // sends a message to the current screen
  79. #define DO_SCREEN_SEND_TO_CURRENT       15
  80.  
  81. // opens a popup screen over the current screen
  82. #define DO_SCREEN_OPEN_POPUP            16
  83.  
  84. // closes any popup screen over the current screen
  85. #define DO_SCREEN_CLOSE_POPUP           17
  86.  
  87. // 20-Feb-1995 : PJL : added for the what next button - find an untried detail
  88. //      which is in the profile and then SKIP to it
  89. #define DO_SCREEN_WHAT_NEXT             18 
  90.  
  91. // causes the glossary help screen to be loaded or brought to the front.
  92. #define DO_SCREEN_LOAD_GLOSSARY         19
  93.  
  94. /***************************************************************************\
  95. *   Hotspot window messages                                                 *
  96. \***************************************************************************/
  97.              
  98. // sent by a hotspot window when the mouse moves over it
  99. #define DO_HOTSPOT_MOUSEMOVE            101 
  100.  
  101. // sent by a hotspot window when the left button is pressed
  102. #define DO_HOTSPOT_LBUTTONDOWN          102
  103.  
  104. // sent by a hotspot window when the left button is released
  105. #define DO_HOTSPOT_LBUTTONUP            103
  106.  
  107. /***************************************************************************\
  108. *   MCI object messages                                                     *
  109. \***************************************************************************/
  110.              
  111. // MCI notification messages
  112. #define DO_MCI_NOTIFY_ABORTED           201
  113. #define DO_MCI_NOTIFY_SUCCESSFUL        202
  114. #define DO_MCI_NOTIFY_SUPERSEDED        203
  115. #define DO_MCI_NOTIFY_FAILURE           204
  116.  
  117. // MCI command messages
  118. #define DO_MCI_STOP                     205
  119. #define DO_MCI_PAUSE                    206
  120. #define DO_MCI_RESUME                   207
  121. #define DO_MCI_SEEK                     208
  122. #define DO_MCI_PLAY                     209
  123.  
  124. // other MCI targetted messages
  125. #define DO_MCI_DESTROY                  210
  126. #define DO_MCI_HIDE                     211
  127. #define DO_MCI_SHOW                     212
  128. #define DO_MCI_HIDE_ON_SUCCESS          213
  129. #define DO_MCI_SHOW_PLAY_HIDE           214
  130.  
  131. /***************************************************************************\
  132. *   Graphic Item Display Objectw messages                                   *
  133. \***************************************************************************/
  134.  
  135. #define DO_ADD_ITEM                     300
  136. #define DO_REMOVE_ITEM                  301
  137. #define DO_INVALIDATE_ITEM              302
  138. #define DO_SHOW_ITEM                    303
  139.  
  140. /***************************************************************************\
  141. *   CXHowTo                                                                 *
  142. \***************************************************************************/
  143.  
  144. // 19-Oct-1994 : PJL : 
  145. // a new detail has been selected
  146. #define DO_NEW_DETAIL                   400
  147. #define DO_RUN_DEMO                     401
  148. #define DO_WIN95_POPUP                  402
  149. #define DO_WIN31_POPUP                  403
  150. #define DO_RUN_TRYIT                    404
  151.  
  152. /***************************************************************************\
  153. *   Try it and Demo screens                                                *
  154. \***************************************************************************/
  155.  
  156. //  sequencing of events
  157. #define DOW_EVENT_DONE                  500
  158. #define DOW_MOUSE_TIMER_CLICK           501
  159. #define DOW_PAUSE_TIMER_CLICK           502
  160. #define WM_EVENT_DONE                   503
  161. #define DO_EVENT_DONE                   504
  162. #define DO_HOTSPOT_RBUTTON_DOWN         505
  163. #define DO_HOTSPOT_RBUTTON_UP           506
  164. #define DO_HOTSPOT_LBUTTON_DBLCLK       507
  165. #define DO_DEMO_MOUSE_MOVE              508
  166. #define DO_DEMO_CHAR                    509 
  167. #define DO_DEMO_PAINT                   510
  168. #define DOW_ARROW_TIMER_CLICK           511
  169. #define DO_DEMO_COMPLETE                512
  170. #define DOW_DOUBLE_TIMER_CLICK          513   
  171. #define DOW_LCLICK_TIMER_CLICK          514 
  172. #define DOW_RCLICK_TIMER_CLICK          515 
  173. #define DOW_CHAR_TIMER_CLICK            516  
  174. #define DOW_KEY_TIMER_CLICK             517   
  175.  
  176. /***************************************************************************\
  177. *   Profile popup messages                                                 *
  178. \***************************************************************************/
  179.  
  180. #define DO_PROFILE_RESET                600
  181.  
  182. /***************************************************************************\
  183. *   Question popup messages                                                *
  184. \***************************************************************************/
  185.  
  186. #define DO_QUESTION_CHOOSE              700
  187. #define DO_QUESTION_ANSWER_CHOSEN       701 
  188. #define DOW_QUESTION_TIME_UP            702
  189.  
  190.  
  191. /***************************************************************************\
  192. *   Module menu messages                                                   *
  193. \***************************************************************************/
  194.  
  195. #define DO_MODULE_MENU_SECTION_SELECTED 800
  196.  
  197. /***************************************************************************\
  198. *   Messages for video window that passes mouse clicks back to parent.     *
  199. \***************************************************************************/
  200.  
  201. #define DOW_LMOUSEBUTTONDOWN            900
  202. #define DO_MOUSECLICKEDOVERVIDEO        901           // passed back to parent
  203.  
  204. /***************************************************************************\
  205. *   Opening screen messages                                                *
  206. \***************************************************************************/
  207.  
  208. #define DOW_OPENING_LBUTTONDOWN         1000
  209.  
  210. /***************************************************************************\
  211. *   Main menu messages                                                     *
  212. \***************************************************************************/
  213.  
  214. #define DO_MAIN_MENU_START_INTRODUCTION 1100
  215.  
  216. /***************************************************************************\
  217. *   Video Control messages                                                 *
  218. \***************************************************************************/
  219.  
  220. #define DO_VIDEO_CONTROLS_TOSTART       1200
  221. #define DO_VIDEO_CONTROLS_PLAY          1201 
  222. #define DO_VIDEO_CONTROLS_PAUSE         1202
  223. #define DO_VIDEO_CONTROLS_TOEND         1203